package com.boredom.Sloth;

//import java.util.ArrayList;
import java.util.List;

//import android.graphics.drawable.Drawable;
import android.os.Bundle;

//import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
import com.google.android.maps.Overlay;

//import dummyObjects.DummyClub;
//import dummyObjects.DummyUser;

public class SlothMapActivity extends MapActivity {
	
	static final public String SLOTH_ITEMIZER_KEY = "SLOTH_ITEMIZER_KEY";

	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.map_tab_layout);
        
        /**Initialize File Manager*/

        /**Initialize the Network*/        
        
        MapView mapView = (MapView) findViewById(R.id.mapview);
        mapView.setBuiltInZoomControls(true);
        
        List<Overlay> mapOverlays = mapView.getOverlays();
        
        
        //itemizedOverlay.addOverlay(overlayItem);
        mapOverlays.add(SlothMain.getItemizer());       
        
    }
	
	public SlothMapActivity() {
		// TODO Auto-generated constructor stub
	}

	@Override
    protected boolean isRouteDisplayed(){
    	return false;
    }

	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
		SlothMain.getItemizer().updateDisplayList();
	}

	@Override
	protected void onStart() {
		// TODO Auto-generated method stub
		super.onStart();
		SlothMain.getItemizer().updateDisplayList();
	}
	
	

}
